import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 我关注的列表
export function getMyConcern(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryMyCare',
    method: 'post',
    data
  })
}

// 我上报的列表
export function getMyReport(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryMyReport',
    method: 'post',
    data
  })
}

// 标记为我关注的
export function setMarkCare(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doMarkCare',
    method: 'post',
    data
  })
}

// 我的草稿列表
export function getMyDraft(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryMyDraft',
    method: 'post',
    data
  })
}

// 撤销
export function doRevoke(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doRevoke',
    method: 'post',
    data
  })
}

// 待我审批的列表
export function getMyPendingApprove(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryMyPendingApprove',
    method: 'post',
    data
  })
}

// 已审批的列表
export function getMyApproved(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryMyApproved',
    method: 'post',
    data
  })
}

// 抄送我的列表
export function getCCToMe(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryCCToMe',
    method: 'post',
    data
  })
}

// 已完结列表
export function getCompletedList(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryCompleted',
    method: 'post',
    data
  })
}

// 删除数据
export function doDelete(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doDelete',
    method: 'DELETE',
    data
  })
}

// 取消关注
export function doCleanMarkCare(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doCleanMarkCare',
    method: 'post',
    data
  })
}

// 查询进度
export function doQueryProgress(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doQueryProgress',
    method: 'post',
    data
  })
}

// 批示
export function doComment(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/baqsjRecord/doComment',
    method: 'post',
    data
  })
}
